package com.yxy.model;


import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "tenant_extend")
public class TenantExtend {

  //主键, 从union auth系统同步而来
  @Id
  @Column(name = "id")
  private Long id;

  //租户名称, 从union auth同步而来
  @Column(name = "name")
  private String name;

  //租户描述
  @Column(name = "description")
  private String description;

  //类型: common(一般租户) 或者 group(租户组)
  @Column(name = "type")
  private String type;

  //租户组的id,关联tenant表的主键
  @Column(name = "group_id")
  private Long groupId;

  //地址
  @Column(name = "address")
  private String address;

  //负责人姓名
  @Column(name = "manager_person")
  private String managerPerson;

  //负责人 手机号
  @Column(name = "manager_mobile")
  private String managerMobile;

  //0 有效  1 逻辑删除
  @Column(name = "status")
  private Long status;

  //描述(保留字段)
  @Column(name = "misc")
  private String misc;

  //创建者id
  @Column(name = "create_user_id")
  private Long createUserId;

  //创建人姓名
  @Column(name = "create_user_name")
  private String createUserName;

  //创建时间
  @Column(name = "create_date")
  private Date createDate;

  //修改人id
  @Column(name = "update_user_id")
  private Long updateUserId;

  //修改人姓名
  @Column(name = "update_user_name")
  private String updateUserName;

  //更新时间
  @Column(name = "update_date")
  private Date updateDate;


}
